package edu.sctu.wulixia.month6.day20150607;

/**
 * Created by user05 on 2015/6/8.
 */
public class Calculagraph4 implements Runnable {
    @Override
    public void run() {
        int time = 0;
        while (time < 10000){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            time = time + 1000;
            System.out.println("时间已过："+(time/1000)+"秒");
        }
    }
}
